package com.example.demo.service.impl;

import com.example.demo.dao.DakaCountDao;
import com.example.demo.entity.DakaCount;
import com.example.demo.service.CountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class CountServiceImpl implements CountService {

    @Autowired
    private DakaCountDao dakaCountDao;
    @Override
    public DakaCount count() {
        return dakaCountDao.count(new Date());
    }

    @Override
    public DakaCount dakaCount() {
        return dakaCountDao.dakaCount();
    }
}
